package com.cloud.form.api.entity;

import javax.persistence.*;

@Table(name = "form_field_auth")
public class FormFieldAuth {
	@Id
	@Column(name = "field_id")
	private Long fieldId;
	
	@Id
	@Column(name = "act_def_id")
	private Long actDefId;
	
	@Id
	@Column(name = "form_id")
	private Long formId;

	@Id
	@Column(name = "part_id")
	private Long partId;

	@Column(name = "auth_code")
	private Integer authCode;

	@Transient
	private String fieldName;

	/**
	 * @return field_id
	 */
	public Long getFieldId() {
		return fieldId;
	}

	/**
	 * @param fieldId
	 */
	public void setFieldId(Long fieldId) {
		this.fieldId = fieldId;
	}

	/**
	 * @return form_id
	 */
	public Long getFormId() {
		return formId;
	}

	/**
	 * @param formId
	 */
	public void setFormId(Long formId) {
		this.formId = formId;
	}

	/**
	 * @return part_id
	 */
	public Long getPartId() {
		return partId;
	}

	/**
	 * @param partId
	 */
	public void setPartId(Long partId) {
		this.partId = partId;
	}

	/**
	 * @return auth_code
	 */
	public Integer getAuthCode() {
		return authCode;
	}

	/**
	 * @param authCode
	 */
	public void setAuthCode(Integer authCode) {
		this.authCode = authCode;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public Long getActDefId() {
		return actDefId;
	}

	public void setActDefId(Long actDefId) {
		this.actDefId = actDefId;
	}

}